#include "ResizeDirectMappingDialog.h"

ResizeDirectMappingDialog::ResizeDirectMappingDialog(QWidget *parent) :
    QDialog(parent)
{
    ui.setupUi(this);
}


ResizeDirectMappingMode ResizeDirectMappingDialog::GetMode()
{
    switch(ui.comboBox->currentIndex())
    {
    case 0:
        return Repeat;
    case 1:
    default:
        return Interpolate;
    }
}

int ResizeDirectMappingDialog::GetFactor()
{
    return ui.txtSizeFactor->text().toInt();
}
